package com.shiguiwu.springboot3.feign;

import com.shiguiwu.springboot3.util.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * @description: 采用自带的配置url
 * spring.cloud.openfeign.client.config.<interface-name>.url
 * http://127.0.0.1:8095
 * @author: stone
 * @date: Created by 2023/7/30 21:40
 * @version: 1.0.0
 * @pakeage: com.shiguiwu.springboot3.feign
 *
 * 这里的name要和配置里的name保持一致
 */
@FeignClient(name = "systemFeign")
public interface UserFeignUrlConfigClient {

    @GetMapping("/user/test2")
    public R<Integer> test();
}
